
<!-- Author: Parsia Hakimian https://github.com/parsiya/Hugo-Shortcodes -->

<!-- normal image with caption
     sample usage:
     { { < imgcap title="figurecaption" src="imagesrc" > } }
     { { < imgcap title="this is a tree" src="/images/2016/gardening/tree1.jpg" > } }
     alt and title and caption will be the same
-->

<!-- <figure class="imagecaption">
  <img class="caption" title="{{ .Get "title" }}" alt="{{ .Get "title" }}" src="{{ .Get "src" }}"></img>
  <figcaption>
    <span class="caption-text">{{ .Get "title" }}</span>
  </figcaption>
</figure> -->

<!-- imitates the imgcap plugin from Octopress -  -->


<span class="caption-wrapper">
  <img class="caption" src="{{ .Get "src" }}" title="{{ .Get "title" }}" alt="{{ .Get "title" }}">
  <span class="caption-text">{{ .Get "title" }}</span>
</span>
